# Contributor: Marian <marian.buschsieweke@ovgu.de>
# Maintainer: Marian <marian.buschsieweke@ovgu.de>
pkgname=wpa_actiond
pkgver=1.4
pkgrel=4
pkgdesc="Daemon that connects to wpa_supplicant and handles connect and disconnect events"
url="https://git.archlinux.org/wpa_actiond.git/"
arch="all"
license="GPL-2.0-only"
source="https://git.archlinux.org/wpa_actiond.git/snapshot/wpa_actiond-$pkgver.tar.gz
	no_trampoline.patch
	wpa_actiond.confd
	wpa_actiond.initd
	"
options="!check"

build() {
	make
}

package() {
	install -Dm755 wpa_actiond "$pkgdir"/usr/sbin/wpa_actiond
	install -Dm755 "$srcdir"/wpa_actiond.initd "$pkgdir"/etc/init.d/wpa_actiond
	install -Dm644 "$srcdir"/wpa_actiond.confd "$pkgdir"/etc/conf.d/wpa_actiond
}

sha512sums="21e6e6a650f27565a0a314d2ae85cb246e07baf866220ed3fd33db764f389d91f0804fc79da4e2d0b7f68094683d8ee2ff9aa365612919edb293994bf92881fd  wpa_actiond-1.4.tar.gz
ebd49ffe1a83e08cd51d99677ce8c3f84ecdd4f3ec4a2c81a336bd87af56db0d36534003f9d7c3b34de129a3a4ef4ee4e9683f2a54729af86c946206c11cd20d  no_trampoline.patch
104ffd6e04d8f69fb238428256e2bc4a8e6acd5e333fc411a72b5ae2d82f4efff6e8d4e08a282ca1a8c2ffe0b2a7fd8cd3ac222e19d6c177c721b957ef4fa5e9  wpa_actiond.confd
37f470728d74f0ca0d7c0c37ee8642710654f7ab3f8763d8ddb629dd096ad08adec266ba8d3dc15917fdbcd5667f302f6703909b3e86cd91c5c102c7412da788  wpa_actiond.initd"
